package com.itboye.ihomebank.me;

import java.util.ArrayList;
import java.util.List;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.itboye.ihomebank.R;
import com.itboye.ihomebank.adapter.ZhangHuAdapter;
import com.itboye.ihomebank.base.BaseOtherActivity;
import com.itboye.ihomebank.bean.ZhangHuBean;
import com.itboye.ihomebank.custom.MyListView;
/**
 * 我的账户
 *
 */
public class ActivityZhangHu extends BaseOtherActivity {
	ImageView zhanghu_icon;
	
	MyListView zhanghu_listView;
	ImageView zhanghu_add;
	
	ZhangHuAdapter adapter;
	
	List<ZhangHuBean> list=new ArrayList<ZhangHuBean>();
	
	
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.zhanghu_icon:
			finish();
			break;

		default:
			break;
		}

	}

	@Override
	protected int layout_id() {
		return R.layout.activity_zhang_hu;
	}

	@Override
	protected void onInitController() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void onInit() {
		adapter=new ZhangHuAdapter(this, list, R.layout.item_zhanghu);
		
		for (int i = 0; i < 2; i++) {
			ZhangHuBean bean=new ZhangHuBean();
			list.add(bean);
		}
		
		zhanghu_listView.setAdapter(adapter);
		
		adapter.notifyDataSetChanged();

	}

	@Override
	protected void onReadIntent(Bundle bundle) {
		// TODO Auto-generated method stub

	}

}
